home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / Make / source / vmsdir.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-27  |  801 b   |  43 lines

  1. /* dirent.h for vms */
  2.  
  3. #include <rms.h>
  4.  
  5. #define    MAXNAMLEN    255
  6.  
  7. #ifndef __DECC
  8. typedef unsigned long u_long;
  9. typedef unsigned short u_short;
  10. #endif
  11.  
  12. struct    direct {
  13.   off_t d_off;
  14.   u_long d_fileno;
  15.   u_short d_reclen;
  16.   u_short d_namlen;
  17.   char d_name[MAXNAMLEN + 1];
  18. };
  19.  
  20. #undef DIRSIZ
  21. #define DIRSIZ(dp)  \
  22.     (((sizeof (struct direct) - (MAXNAMLEN+1) + ((dp)->d_namlen+1)) + 3) & ~3)
  23.  
  24. #define d_ino    d_fileno        /* compatability */
  25.  
  26.  
  27. /*
  28.  * Definitions for library routines operating on directories.
  29.  */
  30.  
  31. typedef struct FAB DIR;
  32.  
  33. #ifndef NULL
  34. #define NULL 0
  35. #endif
  36. extern    DIR *opendir PARAMS (());
  37. extern    struct direct *readdir PARAMS ((DIR *dfd));
  38. #define rewinddir(dirp)    seekdir((dirp), (long)0)
  39. extern    int closedir PARAMS ((DIR *dfd));
  40. extern char *vmsify PARAMS ((char *name, int type));
  41.  
  42. /* EOF */
  43.